import Layout from '@/views/layout'

export default {
  path: '/outlets',
  name: 'outlets',
  component: Layout,
  redirect: '/outlets/manage',
  meta: {
    title: '网点管理',
    icon: 'nested',
    perm: 'm:outlets',
    sort: 4
  },
  children: [
    {
      path: '/outlets/manage',
      name: 'outletsManage',
      redirect: '/outlets/manage/list',
      component: () => import('@/views/common/index'),
      meta: {
        title: '网点管理',
        icon: 'nested',
        perm: 'm:outlets:manage'
      },
      children: [
        {
          path: '/outlets/manage/list',
          name: 'outletsList',
          component: () => import('@/views/outlets/manage/list'),
          meta: {
            title: '网点列表',
            icon: 'table',
            perm: 'm:outlets:manage:list'
          }
        }
      ]
    },
    {
      path: '/outlets/type',
      name: 'outletsType',
      component: () => import('@/views/common/index'),
      meta: {
        title: '网点类型',
        icon: 'nested',
        perm: 'm:outlets:type'
      },
      children: [
        {
          path: '/outlets/type/list',
          name: 'outletsTypeList',
          component: () => import('@/views/outlets/type/list'),
          meta: {
            title: '类型列表',
            icon: 'table',
            perm: 'm:outlets:type:list'
          }
        }
      ]
    }
  ]
}
